package com.cwf.auth.service.impl;

import com.cwf.auth.domain.Permission;
import com.cwf.auth.mapper.PermissionMapper;
import com.cwf.auth.service.IPermissionService;
import com.cwf.basic.annotation.AutoScanPermission;
import com.cwf.basic.service.impl.BaseServiceImpl;
import com.cwf.basic.util.ClassUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Objects;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cwf
 * @since 2023-12-01
 */
@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements IPermissionService {
    @Autowired
    private PermissionMapper permissionMapper;
    @Override
    public void deleteAll() {
        permissionMapper.deleteAll();
    }

    @Override
    public List<Permission> tree() {
        return permissionMapper.tree();
    }
}
